package com.itheima.myDUOTAI.test01;

public class AnimalOperator {
    public void useAnimal(Animal a){
        a.eat();

        if(a instanceof Dog){
            Dog dog = (Dog) a;
            dog.lookHome();
        }
    }
}
